
# 公司要发礼物，条件是：必须是大于等于18岁小于30岁的成年人以及入职时间需满足大于两年，或者级别大于3才可以领取

age = int(input('please tell me your age    '))
if age >= 18:
    print('you are a adult,you may get the gift')
    if int(input('please tell me the lead')) > 3:
        print('leader,you can get the gift')
    elif age < 30:
        duration = int(input('please tell me how long do you stay at the company'))
        if duration > 2:
            print('you can get the gift')
        else:
            print('sorry, you can not get the gift')
    else:
        print('sorry, you can not get the gift')
else:
    print('sorry, you can not get the gift')
